import request from './request.js'

const maintenanceOrder = {
  // 维保订单列表
  OrderMaintenanceList(data) {
	  return request.post('/api/client/core/OrderMaintenance/OrderMaintenanceList', data)
  },
  // 维保订单详情
  GetClientOrderDetails(data) {
	  return request.post('/api/client/core/OrderMaintenance/GetClientOrderDetails', data)
  },
  /* // 维保订单详情
  OrderMaintenancePay(data) {
	  return request.post('/api/client/core/OrderMaintenance/OrderMaintenancePay', data)
  }, */
  // 维保订单_确认创建订单
  ClientAffirmCreateOrder(data) {
    return request.post('/api/client/core/OrderMaintenance/ClientAffirmCreateOrder', data)
  },
  // 维保订单_提交订单
  ClientCreateOrder(data) {
    return request.post('/api/client/core/OrderMaintenance/ClientCreateOrder', data)
  },
  // 维保订单_订单支付
  OrderMaintenancePay(data) {
    return request.post('/api/client/core/OrderMaintenance/OrderMaintenancePay', data)
  },
  // 维保订单_检测支付状态
  CheckOrderMaintenancePaid(data) {
    return request.post('/api/client/core/OrderMaintenance/CheckOrderMaintenancePaid', data)
  },
  // 根据里程数和时间得到需要做保养的项目
  GetDoMaintenanceResponses(data) {
    return request.post('/api/client/core/MaintenanceGoods/GetDoMaintenanceResponses', data)
  },
  // 取消订单
  OrderCancel(data) {
	  return request.post('/api/client/core/OrderMaintenance/OrderCancel', data)
  },
  // 预约到店
  OrderMakeAnAppointment(data) {
	  return request.post('/api/client/core/OrderMaintenance/OrderMakeAnAppointment', data)
  },
  // 取消排队
  OrderMaintenanceCancelQueue(data) {
	  return request.post('/api/client/core/OrderMaintenance/OrderMaintenanceCancelQueue', data)
  },
  // 根据选择的优惠券得到优惠金额
  CheckCouponsByGoods(data) {
	  return request.post('/api/client/core/Coupon/CheckCouponsByGoods', data)
  },
  // 更变商品获取服务费
  GetServiceFeeByGoods(data) {
    return request.post('/api/client/core/MaintenanceGoods/GetServiceFeeByGoods', data)
  },
  // 根据ID和商品/服务获取可用优惠券详情
  GetUsableCouponsByIdAndGoods(data) {
    return request.post('/api/client/core/Coupon/GetUsableCouponsByIdAndGoods', data)
  }
}

export default maintenanceOrder
